Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: glob seed paths when loading config #2726

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

sweatybridge
Copy link
Contributor

@sweatybridge sweatybridge commented Oct 4, 2024

What kind of change does this PR introduce?

refactor

What is the new behavior?

Globs seed files on config load. This helps detect path errors early and loading paths consistently in branching.

Additional context

Add any other context or screenshots.

SqlPaths []string `toml:"sql_paths"`
Enabled bool `toml:"enabled"`
GlobPatterns []string `toml:"sql_paths"`
SqlPaths []string `toml:"-"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise

I really need to remember this trick to add stuff in the config structure that are not in the toml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants